<!-- 我的列表 -->
<template>
  <div class="contain">
    <manage-header></manage-header>
    <div class="myfile-con">
      <ul>
        <router-link to="/SupplierLic" tag="li">
          <span class="l-icon"><i class="iconfont icon-files green"></i>我的供应商</span>
          <i class="iconfont icon-more"></i>
        </router-link>
        <router-link to="/Order/HisList" tag="li">
          <span class="l-icon"><i class="iconfont icon-recipient blue"></i>历史订单</span>  
          <i class="iconfont icon-more"></i>
        </router-link>
        <router-link to="/user/settle" tag="li">
          <span class="l-icon"><i class="iconfont icon-statement green"></i>结算单</span>
          <i class="iconfont icon-more"></i>
        </router-link>
        <router-link to="/user/msg" tag="li">
          <span class="l-icon"><i class="iconfont icon-my gold"></i>我的资料</span>
          <i class="iconfont icon-more"></i>
        </router-link>
        <router-link to="/user/password" tag="li">
          <span class="l-icon"><i class="iconfont icon-lock"></i>修改密码</span>
          <i class="iconfont icon-more"></i>
        </router-link>
        <router-link to="/user/set" tag="li">
          <span class="l-icon"><i class="iconfont icon-set green"></i>设置</span>
          <i class="iconfont icon-more"></i>
        </router-link>
        <li @click="loginout">
          <span class="l-icon"><i class="iconfont icon-exit org1"></i>退出系统</span>
          <i class="iconfont icon-more"></i>
        </li>
      </ul>
    </div>
    <manage-footer :status='5'></manage-footer>
  </div>
</template>

<script>
import manageHeader from "@/components/core/header/manage.header.vue";
import manageFooter from "@/components/core/footer/manage.footer.vue";

export default {
  components: {
    manageFooter,
    manageHeader
  },
  data() {
    return {
      roleshow: false,
      meunshow:false,
    };
  },
  created() {
    document.title = "我的";
  },
  mounted() {
    this.$nextTick(function() {
      var userinfo = JSON.parse(localStorage.userinfo);
      if (userinfo.UserType == "2") {
        this.roleshow = true;
      }
     if (userinfo.UserBizType == "Salesman") {
          this.meunshow = true;
        } 
    });
  },
  methods: {
    loginout: function() {
      localStorage.clear();
      sessionStorage.clear();
      this.$router.push({
        path:'/login'
      });
    }
  }
};
</script>
